const {nanoid} = require('nanoid')
const mongoose = require("mongoose");

const verseSchema = new mongoose.Schema({
  title: {
    type: String,
    require: true
  },
  content: {
    type: String,
    require: true
  },
  id: {
    type: String,
  },
  createTime: {
    type: Date,
    default: new Date()
  },
  userID: String,
  isPrivate: {
    type: Number,
    default: 1
  },
  category: String,
  updateTime: {
    type: Date,
    default: new Date()
  },
  status: {
    type: Number,
    default: 1
  }
})

module.exports = mongoose.model("list", verseSchema, 'list')
